package com.erp.erp_servers.Blueprint.imp;

import com.erp.erp_dao.Blueprint.IBlueprintFileDAO;
import com.erp.erp_entitys.Blueprint.BlueprintFileEntity;
import com.erp.erp_servers.Blueprint.IBlueprintFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpBlueprintFileService implements IBlueprintFileService {
    @Autowired
    private IBlueprintFileDAO fileDAO;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return fileDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(BlueprintFileEntity record) {
        return fileDAO.insert(record);
    }

    @Override
    public int insertSelective(BlueprintFileEntity record) {
        return fileDAO.insertSelective(record);
    }

    @Override
    public BlueprintFileEntity selectByPrimaryKey(Integer id) {
        return fileDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(BlueprintFileEntity record) {
        return fileDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(BlueprintFileEntity record) {
        return fileDAO.updateByPrimaryKey(record);
    }

    @Override
    public List<BlueprintFileEntity> selectFileByBid(Integer bid) {
        return fileDAO.selectFileByBid(bid);
    }

}
